package itheima_edu_info_manager.controller;


import itheima_edu_info_manager.domain.Teacher;

import java.util.Scanner;

public class TeacherController extends BaseTeacherController{


    private Scanner sc = new Scanner(System.in);

    @Override
    protected Teacher inputTeacherInfo(String id) {

        System.out.println("请输入老师姓名:");
        String name = sc.next();
        System.out.println("请输入老师年龄:");
        String age = sc.next();
        System.out.println("请输入老师生日:");
        String birthday = sc.next();

        return new Teacher(id, name, age, birthday);
    }
}
